﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            char symbol;
            Calculate C = new Calculate();
            C.DisplayResult();
            Console.WriteLine("请输入一个操作符：");
            symbol = char.Parse(Console.ReadLine());
            if (symbol == '+')
            {
                Plus P = new Plus();
                P.Count();
                P.DisplayResult();
                
            }
            if (symbol == '-')
            {
                Subtract S = new Subtract();
                S.Count();
                S.DisplayResult();
            }
            if (symbol == '*')
            {
                Multiply M = new Multiply();
                M.Count();
                M.DisplayResult();
            }
            if (symbol == '/')
            {
                Divide D = new Divide();
                D.Count();
                D.DisplayResult();
            }
        }
    }
}
